Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Conversation

@rxwei
Copy link
Contributor

@rxwei rxwei commented Feb 26, 2019

We've recently changed the type checker to improve the ergonomics of the @differentiable attribute.

This greatly simplifies libraries and applications that use automatic differentiation. The protocol requirement Layer.applied(to:in:) becomes as simple as this:

@differentiable
func applied(to input: Input, in context: Context) -> Output

This PR updates deep learning APIs to use the simplest form of @differentiable possible. Hooray!

@rxwei rxwei added the enhancement New feature or request label Feb 26, 2019
@rxwei rxwei requested review from lattner and saeta February 26, 2019 09:46
@lattner
Copy link

lattner commented Feb 26, 2019

Yay, thank you!

Copy link
Contributor

@saeta saeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🎆

@rxwei rxwei merged commit ce67f8d into tensorflow:master Feb 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants